package com._520it.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com._520it.crm.domain.Risk;
import com._520it.crm.mapper.RiskMapper;
import com._520it.crm.service.IRiskService;

@Service
public class RiskServiceImpl implements IRiskService {
	@Autowired
	private RiskMapper mapper;

	public int deleteByPrimaryKey(Long id) {
		return mapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Risk record) {
		return mapper.insert(record);
	}

	@Override
	public Risk selectByPrimaryKey(Long id) {
		return mapper.selectByPrimaryKey(id);
	}

	@Override
	public List<Risk> selectAll() {
		return mapper.selectAll();
	}

	@Override
	public int updateByPrimaryKey(Risk record) {
		return mapper.updateByPrimaryKey(record);
	}

}
